<template>
  <div id="app">
    <router-view></router-view>
    <div class="footer">
      <van-tabbar v-model="active" style="backgroundColor:#eee">
        <van-tabbar-item @click="$router.push({path:'/home'})">
          <i class="iconfont icon-shouye"></i>
          <p>首页</p>
        </van-tabbar-item>
        <van-tabbar-item>
          <i class="iconfont icon-huiyuan1"></i>
          <p>会员</p>
        </van-tabbar-item>
        <van-tabbar-item @click="$router.push({path:'/car'})">
          <i class="iconfont icon-qicheqianlian-1-copy"></i>
          <p>购物车</p>
        </van-tabbar-item>
        <van-tabbar-item>
          <i class="iconfont icon-sousuo"></i>
          <p>搜索 0</p>
        </van-tabbar-item>
      </van-tabbar>
    </div>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return {
      active: 0,
    };
  },
  components: {},
};
</script>

<style lang="less" scoped>
@import url("//at.alicdn.com/t/font_2624303_vli1xrtldwk.css");
/deep/ .van-nav-bar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 50px;
  text-align: center;
  font-size: 18px;
  color: #fff;
  line-height: 50px;
  background-color: rgb(84, 182, 238);
  .van-nav-bar__title {
    color: #fff;
    font-size: 20px;
  }
  .van-nav-bar__left {
    i,
    span {
      font-size: 18px;
      color: #fff;
    }
  }
}
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  background-color: #eee;
  /deep/ .van-tabbar-item--active {
    background-color: #eee;
  }
  /deep/ .van-tabbar-item {
    text-align: center;
    font-size: 14px;
    i {
      font-size: 22px;
    }
    p {
      margin-top: 5px;
    }
  }
}
</style>
